package collection;

import java.util.HashSet;
import java.util.Set;

public class SetDemo {
    public static void main(String[] args) {
        Set<Point> set = new HashSet<Point>();
        set.add(new Point(0,0));
        set.add(new Point(0,1));
        set.add(new Point(1,2));
        set.add(new Point(1,3));
        set.add(new Point(2,4));
        set.add(new Point(2,5));

        System.out.println(set);

        boolean b=set.add(new Point(0,0));
        System.out.println(b);

        System.out.println(set);
    }
}
